package com.study.springCustom.service;

import com.study.springCustom.dao.UserDao;
import com.study.springCustom.model.User;

import java.util.List;
import java.util.Map;

public class UserServiceImpl implements UserService {

    // 依赖注入UserDao
    private UserDao userDao;

    // setter方法注入UserDao
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public List<User> queryUsers(Map<String, Object> param) {
        return userDao.queryUserList(param);
    }

}
